package cc.lirns.utils.result;

import cc.lirns.utils.result.entity.EntityResult;

import java.util.Collections;

/**
 * @author lirns
 * @date 2021/12/2 15:08
 */
public class Demo {

    public static void main(String[] args) {
        Demo demo = new Demo();
        System.out.println(demo.test1());
        System.out.println(demo.test2());
        EntityResult entityResult = new EntityResult(1, "2", null);
        System.out.println(entityResult.getCode());
        System.out.println(entityResult.getMsg());
    }

    Result test1() {
        return ResultUtil.success();
    }

    Result test2() {
        return ResultUtil.table(Collections.singletonList("d"), 1);
    }

}
